package homework.mission3;

/**
 * 手机卡类
 */
public class PhoneCard {
    // 卡类型
    private String cardType;
    // 卡号
    private int cardNum;
    // 用户名
    private String username;
    // 密码
    private String password;
    // 余额
    private double balance;
    // 通话时长
    private double duration;
    // 流量
    private double gbrs;

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public int getCardNum() {
        return cardNum;
    }

    public void setCardNum(int cardNum) {
        this.cardNum = cardNum;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public double getDuration() {
        return duration;
    }

    public void setDuration(double duration) {
        this.duration = duration;
    }

    public double getGbrs() {
        return gbrs;
    }

    public void setGbrs(double gbrs) {
        this.gbrs = gbrs;
    }

    public void show() {
        System.out.println("卡号 " + this.cardNum + " 用户名: " + username + " 当前余额: " + balance);
    }
}
